import axios from 'axios'
import qs from 'qs'
import global from '../static/global'

export default {
  async insertYbUser (ybuser) {
    ybuser = qs.stringify(ybuser)
    let result = await axios({
      url: '/studentevaluation/api/ybuser/insertYbUser',
      method: 'post',
      data: ybuser
    })
    return result
  },
  async login (loginData) {
    let result = await axios({
      url: '/studentevaluation/api/ybuser/login',
      method: 'get',
      params: loginData
    })
    return result
  }

}
